﻿using System;

namespace Shuba.Model
{
    public class branch_rollout_versionInfo
    {
        public branch_rollout_versionInfo()
        {
        }

        public branch_rollout_versionInfo(string BranchID, string version, string entry_by, DateTime entry_date, string update_by, DateTime update_date)
        {
            this.BranchID = BranchID;
            this.version = version;
            this.entry_by = entry_by;
            this.entry_date = entry_date;
            this.update_by = update_by;
            this.update_date = update_date;
        }

        public branch_rollout_versionInfo(string BranchID, string version, string entry_by, DateTime entry_date, string update_by, DateTime update_date, string ActType)
        {
            this.BranchID = BranchID;
            this.version = version;
            this.entry_by = entry_by;
            this._entry_date = entry_date;
            this.update_by = update_by;
            this._update_date = update_date;
            this.ActType = ActType;
        }

        public branch_rollout_versionInfo(string BranchID, string BranchName, string version, DateTime impl_date, string is_delete)
        {
            this.BranchID = BranchID;
            this.BranchName = BranchName;
            this.version = version;
            this.implementation_date = impl_date;
            this.is_delete = is_delete;
        }

        // to load list on add
        public branch_rollout_versionInfo(string BranchID, string BranchName, DateTime implementation_date)
        {
            this.BranchID = BranchID;
            this.BranchName = BranchName;
            this.implementation_date = implementation_date;
        }

        //buat list setelah ditambah implementaation date dan is_delete
        public branch_rollout_versionInfo(string BranchID, string version, DateTime implementation_date, string is_delete, string entry_by, DateTime entry_date, string update_by, DateTime update_date)
        {
            this.BranchID = BranchID;
            this.version = version;
            this.implementation_date = implementation_date;
            this.is_delete = is_delete;
            this.entry_by = entry_by;
            this.entry_date = entry_date;
            this.update_by = update_by;
            this.update_date = update_date;
        }

        //buat list tmp setelah ditambah implementaation date dan is_delete
        public branch_rollout_versionInfo(string BranchID, string version, DateTime implementation_date, string is_delete, string entry_by, DateTime entry_date, string update_by, DateTime update_date, string ActType)
        {
            this.BranchID = BranchID;
            this.version = version;
            this.implementation_date = implementation_date;
            this.is_delete = is_delete;
            this.entry_by = entry_by;
            this.entry_date = entry_date;
            this.update_by = update_by;
            this.update_date = update_date;
            this.ActType = ActType;
        }


        public string BranchID { get; set; }
        public string BranchName { get; set; }
        public string version { get; set; }
        public string entry_by { get; set; }
        private DateTime _entry_date = DateTime.Now;
        public DateTime entry_date
        {
            get { return _entry_date; }
            set { _entry_date = value; }
        }
        public string update_by { get; set; }
        private DateTime _update_date = DateTime.Now;
        public DateTime update_date
        {
            get { return _update_date; }
            set { _update_date = value; }
        }
        public string ActType { get; set; }

        private DateTime _implementation_date = DateTime.Now;
        public DateTime implementation_date
        {
            get { return _implementation_date; }
            set { _implementation_date = value; }
        }
        public string is_delete { get; set; }
    }
}